package day05.shuzu;

import java.util.Arrays;

public class Lian07 {
    public static void main(String[] args) {
        int[]arr={1,2,3,4,5,6,7,8};
        int num=3;
        int i = Arrays.binarySearch(arr, 3);
        System.out.println(i);
    }
}
